<ul>
	<li <?php if($tab == 'main'){?>id="activetab"<?php } ?> ><a href="index.php"><span>Main</span></a></li>
</ul>